<?php foreach ($edit_data as $key): ?>
<form class="form-horizontal" id="categoryForm_view">
	<div class="ibox float-e-margins">
		<div class="ibox-title" style="border: none;">
			<h5 style="color: #00afef"><i>View</i></h5>
		</div>
		<div class="ibox-content">
				<div class="form-group"> <label class="col-lg-4 control-label">Location Code</label>
					<div class="col-lg-4">
						<input readonly type="text" name="catCode_e" value="<?php echo $key->location_code; ?>" class="form-control">
					</div>
				</div>
				<div class="form-group">
					<label class="col-lg-4 control-label">Description</label>
					<div class="col-lg-5">
						<input readonly value="<?php echo $key->description; ?>" type="text" name="catDesc_e" class="form-control">
					</div>
				</div>
				<div class="form-group">
					<label class="col-lg-4 control-label">Enable</label>
					<div class="col-lg-1">
						<input type="checkbox" disabled value="ok" name="catEna_e" class="i-checks" <?php echo ($key->enable_flag == 'Y' ? 'checked' : ''); ?>>
					</div>
				</div>
			</form>
		</div>
	</div>
<?php endforeach;?>
	<script type="text/javascript">
	$(document).ready(function() {
		$('#categoryForm').data('serialize',$('#categoryForm').serialize());
		$('.i-checks').iCheck({
            checkboxClass: 'icheckbox_square-green',
            radioClass: 'iradio_square-green'
        });
	});
	</script>